package com.mall.b2c.bean;

import com.mall.b2c.domain.intergral.ShopProductDomain;
import com.mall.common.util.UploadUtil;

/**
 * Created by chen on 16/12/20.
 */
public  class IntergralShopProductBean {
    private Long id; //商品id
    private String litpic;//缩略图
    private String name;//缩略图
    private int price;
    private String content;//富文本内容
    private int sale_num;
    private int num;
    private Long shopClassId;
    private String shopClassName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public IntergralShopProductBean(ShopProductDomain domain){
        this.id = domain.getId();
        this.litpic = UploadUtil.replacePath(domain.getLitpic());
        this.name = domain.getName();
        this.price =domain.getPrice();
        this.content = domain.getContent();
        this.sale_num = domain.getSale_num();
        this.num =domain.getNum();
        this.shopClassId = domain.getShopclass().getId();
        this.shopClassName = domain.getShopclass().getName();


    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLitpic() {
        return litpic;
    }

    public void setLitpic(String litpic) {
        this.litpic = litpic;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getSale_num() {
        return sale_num;
    }

    public void setSale_num(int sale_num) {
        this.sale_num = sale_num;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Long getShopClassId() {
        return shopClassId;
    }

    public void setShopClassId(Long shopClassId) {
        this.shopClassId = shopClassId;
    }

    public String getShopClassName() {
        return shopClassName;
    }

    public void setShopClassName(String shopClassName) {
        this.shopClassName = shopClassName;
    }
}